<?php
namespace App\Models;

use CodeIgniter\Model; 
/*
 * Mock travel destination data.
 * Note that we don't have to extend CodeIgniter's model for now
 */

class Places extends Model
{
    protected $table = 'places'; 
    protected $allowedFields = ['name', 'description', 'link',  'image']; 

    protected $keyField = 'id';
    protected $validationRules = [
        'name' => 'required|min_length[2]|max_length[50]',
        'description' => 'required',
        
    ];


}
